package com.bwie.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Author: lrz
 * @Date: 2024/11/4 09:03
 * @Description:
 **/
@Data
@Document(indexName = "es_student", shards = 3,replicas = 1)
public class EsStudent implements Serializable {
    @Id
    @Field(type = FieldType.Keyword,index = false)
    private Integer id;
    @Field(type = FieldType.Integer)
    private Integer xk;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String classType;
    @Field(type = FieldType.Integer)
    private Integer bjId;
    @Field(type = FieldType.Keyword)
    private String xh;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String stuName;
    @Field(type = FieldType.Double)
    private Double hgfs;
    @Field(type = FieldType.Double)
    private Double ll;
    @Field(type = FieldType.Double)
    private Double jn;
    @Field(type = FieldType.Integer)
    private Integer flagId;
}
